package com.example.leave.api.vo;

import com.example.leave.domain.leave.aggregate.valueObject.LeaveType;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * TODO
 *
 * @author lxh
 * @date 2020/11/25 下午2:19
 **/
@Data
public class ApprovalVo {
    @NotEmpty(message = "申请人不能为空")
    private String applicantId;

    @NotNull
    private LeaveType leaveType;

    @NotNull
    @Min(value = 1, message = "请假天数至少为1天")
    private Integer duration;

    private String approverId;
}
